#include "processBar.h"

void download()
{
  int total = 1000;
  int cur = 0;
  BarInit();
  while(cur <= total)
  {
    int rate = cur * 100 / total;
    ProcessBar(rate);

    usleep(50000);
    cur += 50;
  }
  printf("\n");
}

int main()
{
  download();
  return 0;
}
